package com.cqjtu.store.user.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cqjtu-store
 * @Titile: PwdUpdateDTO
 * @Author: Lucky
 * @Description: 修改密码的封装类
 */
@Data
@ApiModel(value = "修改密码信息")
public class PwdUpdateDTO {
    /*原来密码*/
    @NotBlank(message = "原密码不能为空")
    @ApiModelProperty(value = "原密码", name = "oldPwd", example = "123456" ,required = true)
    private String oldPwd;
    /*新密码*/
    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", name = "newPwd", example = "123" ,required = true)
    private String newPwd;
    /*重复新密码*/
    @NotBlank(message = "重复新密码不能为空")
    @ApiModelProperty(value = "重复新密码", name = "reNewPwd", example = "123" ,required = true)
    private String reNewPwd;
}
